package com.vdong.common.oauth.common.enums;

/**
 *
 */
public enum PlatformTypeEnum {

    /**
     * 学兽
     */
    STUDY("学兽", 1),

    /**
     * 分销
     */
    DISB("分销", 2),
    ;

    private String state;
    private Integer value;

    private PlatformTypeEnum(String state, Integer value) {
        this.state = state;
        this.value = value;
    }

    public static PlatformTypeEnum getEnum(Integer value) {
        for (PlatformTypeEnum requisitionConstant : PlatformTypeEnum.values()) {
            if (requisitionConstant.getValue().equals(value)) {
                return requisitionConstant;
            }
        }
        return null;
    }

    public Integer getValue() {
        return value;
    }

    public String getState() {
        return state;
    }
}
